//
//  HomeTableVc.swift
//  WeiBo14
//
//  Created by rzj on 16/3/9.
//  Copyright © 2016年 rzj. All rights reserved.
//

import UIKit

class HomeTableVc: BaseVisitorsTabVc {

    override func viewDidLoad() {
        super.viewDidLoad()
     
        //登录不成功
       if loginSuccess == false {
            //设置访客视图信息
            visitorsView.SetUpPageInfo(nil, message: nil)
            //不执行后续方法
            return
       }
        
       setUpUI()
   }

   private func setUpUI () {
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imgName: "navigationbar_friendsearch", target: self, action: "itemOnlickFriendsearch")
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: "navigationbar_pop", target: self, action: "itemOnlickPop")
    }
    
    func itemOnlickFriendsearch () {
        
        print("itemOnlickFriendsearch")
    }
    
    func itemOnlickPop () {
        
        print("itemOnlickPop")
        let vc = PopVc()
        navigationController?.pushViewController(vc, animated: true)
    }
   
}
